<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
    <th:block th:include="include :: header('地址检索')"/>
    <style type="text/css">
        body, html, #allmap {
            width: 100%;
            height: 100%;
            overflow: hidden;
            margin: 0;
            font-family: "微软雅黑";
        }
    </style>
    <script type="text/javascript"
            src="https://api.map.baidu.com/api?v=2.0&ak=ZSXGYc4z7RLVClUmrlL1w9cH9DRghNuw"></script>
    <title>地址解析</title>
</head>
<body>
<div id="allmap"></div>
<th:block th:include="include :: footer"/>
</body>
</html>
<script src="js/jquery-2.1.4.js"></script>
<script src="wxJs/utils/contain.js"></script>
<script src="wxJs/utils/storage.js"></script>
<script type="text/javascript">
    var lat = GetQueryString("lat");
    var lng = GetQueryString("lng");
    var map = new BMap.Map("allmap");
    //根据坐标定位
    var point = new BMap.Point(lng, lat);
    map.centerAndZoom(point, 16);
    map.enableScrollWheelZoom(true);
    var marker = new BMap.Marker(point);  // 创建标注
    map.addOverlay(marker);              // 将标注添加到地图中

</script>